PGetLeading

Gets the leading value assigned to the selected text.


Query results

This query returns a short value representing the leading in tenths of a point (115 for 11.5), or -1 for Auto, -2 for multiple settings
Defining or editing a style. If you are defining or editing a style using the PStyleBegin command, PageMaker gets the leading value for that style rather than for the selected text.

Multiple settings. If multiple characters are selected and the characters have different leading values assigned to them, PageMaker returns -2.

No insertion point. If the text does not contain the insertion point, PageMaker gets the default leading value.

No text selected. If the text contains the insertion point but no text is selected, PageMaker returns the leading value of the character preceding the insertion point. If the insertion point is before the first character of the story, PageMaker returns the leading value of the first character.

Example. To change the leading value assigned to the text, use the PLeading command.

PGetLeading leading;
switch (leading) {
case -1: // auto leading set
...
case -2: // multiple settings
...
default: // leading value in tenths of a point
...
}


Copyright © 1996, Adobe Systems Incorporated. All rights reserved.

Comments or suggestions? Contact Adobe Developer Support